package com.zb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/9/12 0012
 **/
@Data
@ApiModel("工单级别对象")
public class WorkLevelVo {

    @ApiModelProperty(value = "级别ID，新增不必传，修改必传")
    private Long id;

    @NotBlank(message = "等级名称不能为空")
    @Length(max = 20, message = "等级名称限制 20 个字符以内")
    @ApiModelProperty(value = "等级名称", required = true)
    private String name;

    @ApiModelProperty(value = "名称颜色", example = "")
    private String color;

    @ApiModelProperty(value = "权重", example = "1")
    private Integer weight;

    @NotNull(message = "级别状态不能为空")
    @ApiModelProperty(value = "级别状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;

    @NotNull(message = "默认级别不能为空")
    @ApiModelProperty(value = "是否默认级别：false-不默认，true-默认", required = true, example = "false")
    private Boolean defaultLevel;
}
